package cn.itsource.hrm.exception;

public enum ErrorCode {
    //公司名不可为空
    COMPANY_NOT_EMPTY_101("公司名不可为空",101),
    MEAL_NOT_EMPTY_102("套餐不可为空",102),
    EMPLOYEE_NAME_NOT_EMPTY_103("员工账号不可为空",103),
    COURSE_ID_NOT_EMPTY_104("上架课程的id不能为空",104),
    COURSE_NOT_EMPTY_105("课程不存在",105),

    ILLEGAL_BUSINESS_201("营业执照不合法",201),
    ILLEGAL_PHONE_202("手机号不合法",202),
    ILLEGAL_EMAIL_203("邮箱不合法",203),

    REPEATED_EMPLOYEE_NAME_301("员工账号不可重复",301),
    REPEATED_TENANT_NAME_302("公司名不可重复",302);


    private String msg;
    private int code;

    ErrorCode(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return "msg:"+ msg+", code:"+code;
    }


}
